// 引入文件
//  公用样式初始样式
require("../../assets/css/index.less")
require("./motion.less");
require("../../assets/fonts/iconfont.css")



// 引入工具函数
const dom = require('../../utils/dom');
const https = require('../../utils/https');


// 调用导航封装函数
dom.ready(function() {
    dom.hMenu('motion')
    dom.bMenu("motion")

    dom.addEvent('#btn', function() {
        location.href = 'countdown.html'
    })
    https.get('/api/exercise', function(res) {
        dom.getEle("#kil").innerHTML = res.data.sum7Meter
    })
})